package com.bjwl.dao;

import com.bjwl.pojo.Partment;
import com.bjwl.pojo.vo.BasicQueryVo;
import com.bjwl.utils.PageBean;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: dzx
 * @Date:Create：in 2020/5/6 9:39
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Repository
public interface PartmentMapper {

    public void addPartment(Partment partment);

    public int getTotalRecord(BasicQueryVo vo);

    public List<Partment> findAllPartment(PageBean<Partment> pageBean, BasicQueryVo vo);

    Partment findPartmentByName(String partmentname);

    Partment findPartmentById(Integer pmid);

    Integer updatePartment(Partment partment);

    void deletePartment(Integer pmid);
}
